//
//  ShowComposeViewControlller.h
//  groupecards
//
//  Created by Alan Chen on 12/13/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MessageUI/MessageUI.h>

@protocol ShowComposeViewControllerDelegate;
@interface ShowComposeViewControlller : NSObject
<MFMailComposeViewControllerDelegate, MFMessageComposeViewControllerDelegate>
{
    NSArray *recipients_;
    NSString *subject_;
    NSString *content_;
    id<ShowComposeViewControllerDelegate> __unsafe_unretained delegate_;
}

@property (nonatomic,unsafe_unretained) id<ShowComposeViewControllerDelegate> delegate;
@property (nonatomic, retain) NSArray *recipients;
@property (nonatomic, copy) NSString *subject;
@property (nonatomic, copy) NSString *content;

- (void)displaySmsViewForController:(id)controller;
- (void)displayMailViewForController:(id)controller;
+ (BOOL)canSendEmail;
+ (BOOL)canSendSms;
@end


@protocol ShowComposeViewControllerDelegate 

- (void)composeController:(ShowComposeViewControlller *)controller didFinishWithResultForMessage:(MessageComposeResult)result;

- (void)composeController:(ShowComposeViewControlller *)controller didFinishWithResultForMail:(MFMailComposeResult)result error:(NSError *)error;

@end